<script setup lang="ts">
import { getStockDetail } from '@/api/inventory'
import { showLoadingToast } from 'vant'

const route = useRoute()

const params = reactive({
  merchandiseId: route.query.id,
})

const stockDetail = ref({})
const toast = showLoadingToast('加载中...')
getStockDetail(params).then((res) => {
  stockDetail.value = res.data
}).finally(() => {
  toast.close()
})
</script>

<template>
  <div>修改库存</div>
</template>

<route lang="json5">
{
  name: 'inventory-edit',
  meta: {
    title: '修改库存',
    i18n: 'menus.inventory'
  },
}
</route>
